package nc;

import java.util.Scanner;

public class Q21319 {

    public static String MarkNum(String pInStr) {
        StringBuilder sb = new StringBuilder();
        for (int i = 0; i < pInStr.length(); ) {
            char c = pInStr.charAt(i);
            if (c >= '0' && c <= '9') {
                sb.append("*");
                while (c >= '0' && c <= '9') {
                    sb.append(c);
                    i ++;
                    if (i >= pInStr.length()) {
                        break;
                    }
                    c = pInStr.charAt(i);
                }
                sb.append("*");
            } else {
                sb.append(c);
                i ++;
            }

        }
        return sb.toString();
    }

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNext()) {
            final String s = scanner.nextLine();
            System.out.println(MarkNum(s));
        }
    }

}
